package com.zerui.manager.feign;


import com.zerui.manager.feign.request.DeviceActionExecuteRequest;
import com.zerui.manager.feign.response.DeviceEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@FeignClient(name = "iot-service")
@RequestMapping(path = "/iot-service")
public interface DeviceClientFeign {

    /**
     * 批量设备动作执行
     */
    @RequestMapping(path = "/v1/device/actions",method = RequestMethod.POST)
    DeviceEntity<Object> batchActionExecuteByDeviceId(@RequestBody List<DeviceActionExecuteRequest> requests);



}
